Fix some dep errors with cross-compiled plugins
authorAlex Crichton <alex@alexcrichton.com>
Tue, 29 Jul 2014 00:08:46 +0000 (17:08 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 29 Jul 2014 00:08:46 +0000 (17:08 -0700)
commit6f2173dc9f61074a7277c599fd1f3047b1aad9dd
tree9f4346272b5e4465a348a977cce194a3a3d886e8
parent53059f4e3bbd7b9f1e02c7c8ff036d07988feda3
Fix some dep errors with cross-compiled plugins

* Make sure plugins link to plugin dependencies, not target dependencies.
  Previously the --extern flag was being passed incorrectly but the dependency
  was being picked up by -L anyway.

* Fix a type and actually put the host dep directory into LD_LIBRARY_PATH, not
  the target directory. A test was added for this change.
src/cargo/ops/cargo_rustc/mod.rs
tests/test_cargo_cross_compile.rs